<!doctype html>
<html class="no-js">
<head>
    <link rel="stylesheet" href="${rootPath!''}/assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="${rootPath!''}/assets/css/admin.css">
</head>
<body style="width: 100%;height: 100%;">
<!-- content start -->
<div class="admin-content">

    <!-- 导航 开始 -->
    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">提现记录</strong><small></small></div>
    </div>
    <!-- 导航 结束 -->

    <!-- 功能键和导航 开始 -->
    <div class="am-g">

    </div>
    <!-- 功能键和导航 结束 -->

    <!-- 内容 开始 -->
    <div class="am-g">
        <div class="am-u-sm-12">

            <form class="am-form">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <thead>
                    <tr class="am-active">
                        <th class="table-check"><input type="checkbox" onclick="checkbox( this.checked ,'checkbox_list')" /></th>
                        <th class="table-title">用户</th>
                        <th class="table-title">时间</th>
                        <th class="table-title">金额</th>
                        <th class="table-title">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <%
                    for(data in list.list){
                    %>
                    <tr>
                        <td><input type="checkbox" value="${data.logId}" class="checkbox_list" /></td>
                        <td> ${data.name} </td>
                        <td> ${data.createTime} </td>
                        <td> ${data.accout} </td>
                        <td><button type="button" onclick="del(${data.logId},${data.accout},${data.wxUserId});">确认</button></td>
                    </tr>
                    <%}%>
                    </tbody>
                </table>
            </form>

            <!-- 分页 开始 -->
            <div class="am-cf" id="page"><input type="hidden" id="pageValue" value="${list.totalRow}_${list.pageSize}_${list.pageNumber}_5_${rootPath}/tx/"> </div>
            <!-- 分页 结束 -->

        </div>
    </div>
</div>
<!-- content end -->
<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="${rootPath}/assets/js/polyfill/rem.min.js"></script>
<script src="${rootPath}/assets/js/polyfill/respond.min.js"></script>
<script src="${rootPath}/assets/js/amazeui.legacy.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="${rootPath}/assets/js/jquery.min.js"></script>
<script src="${rootPath}/assets/js/amazeui.min.js"></script>
<!--<![endif]-->
<script src="${rootPath}/assets/js/app.js"></script>
<script src="${rootPath}/ext/js/page.js"></script>
<script type="text/javascript">
    //删除
    function del( logId ,accout,wxUserId ) {
        $('#tx-confirm', window.top.document ).modal({
            relatedTarget: this,
            onConfirm: function(options) {
                $.post( "${rootPath}/tx/tx", {
                    "logId":logId,
                    "accout":accout,
                    "wxUserId":wxUserId
                }, function ( data ) {
                    if ( data.status == 1 ) {
                        location.href="${rootPath}/tx/";
                    } else {
                        window.top.tips( data.msg );
                    }
                }, "json" );
            },
            onCancel: function() {
            }
        });
        delete logId;
    }
</script>
</body>
</html>